using System.Collections.Generic;
using DAL;
using Entity;

namespace Business
{
	public class OutBoxBusiness
	{
		#region code CMS
        public static List<OutBox> GetOutBoxList()
        {
		    var result = FreshCmsDataAccessProvider.OutBox.GetOutBoxList();
		    return result;
        }

		public static List<OutBox> GetOutBoxListByPaging(int pageIndex, int pageSize, ref int totalRecord)
        {
		    var result = FreshCmsDataAccessProvider.OutBox.GetOutBoxListByPaging(pageIndex, pageSize, ref totalRecord);
		    return result;
        }

        public static OutBox GetOutBoxById(int boxId)
        {
		    var result = FreshCmsDataAccessProvider.OutBox.GetOutBoxById(boxId);
            return result;
        }

        public static int InsertOutBox(OutBox OutBox)
        {
            var result = FreshCmsDataAccessProvider.OutBox.InsertOutBox(OutBox);
            return result;
        }

        public static int UpdateOutBox(OutBox OutBox)
        {
            var result = FreshCmsDataAccessProvider.OutBox.UpdateOutBox(OutBox);
            return result;
        }

        public static int DeleteOutBox(int boxId)
        {
            var result = FreshCmsDataAccessProvider.OutBox.DeleteOutBox(boxId);
            return result;
        }
		#endregion
	}
}